﻿
@{
    ViewBag.Title = "Hover";
}

<h2>Hover</h2>

<img class="anh" src="~/Images/products/1001.jpg" />

@section scripts{
    <script>
        $(function () {
            $(".anh").height(100);
            $(".anh").width(100);

            $(".anh").hover(function () {
                $(this).attr("src", "/Images/products/1003.jpg");
            }, function () {
                $(this).attr("src", "/Images/products/1001.jpg");
            });
        });
    </script>
}